'''
Created on May 7, 2009

@license: License: LGPL
@copyright: (c) 2009, dogsing.cn
@author: ant-man(Bin Zhao)
'''

import logging

logging.basicConfig(level=logging.DEBUG,
                    format='[%(relativeCreated)d] >> %(message)s',)


def get_logger(name, level=logging.DEBUG):
    logger = logging.getLogger(name)
    logger.setLevel(level)
    return logger